home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / Photoshop 4.0 SDK r2 Mac / Examples / Export / Outbound / Outbound.make < prev    next >
Encoding:
Text File  |  1995-06-12  |  4.4 KB  |  114 lines  |  [TEXT/MPS ]

  1. #========================================================================================
  2. #
  3. # MakeFile - Make rules for Adobe Photoshop¬ 3.0 Developer Toolkit Basic Examples
  4. #
  5. # Written by Dave Wise
  6. #
  7. # Copyright ⌐ 1994, Adobe Systems Incorporated, all rights reserved worldwide.
  8. #
  9. # Version    1.00    10/20/94    Original version
  10. #
  11. #========================================================================================
  12.  
  13. #========================================================================================
  14. # Basic symbols
  15. #========================================================================================
  16. ErrorOut        =    "{Worksheet}"
  17. Out                =    ::::Plug-ins:Mac:
  18.  
  19. h                = :::CIncludes:
  20. Util            = :::Util:
  21. PIRIncludes        = :::RIncludes
  22.  
  23. #========================================================================================
  24. # Utility library stuff
  25. #========================================================================================
  26. # 68K
  27. Libs            =    "{Libraries}"Interface.o 
  28. RFiles            =    "{Rincludes}"Types.r
  29. Utils            =    {Util}DialogUtilities.c.o {Util}PIUtilities.c.o 
  30.  
  31. # PPC
  32. alllibs            =    {PPCLibraries}StdCRuntime.o ╢
  33.                     {PPCLibraries}StdCLib.xcoff ╢
  34.                     {PPCLibraries}InterfaceLib.xcoff ╢
  35.                     {PPCLibraries}PPCCRuntime.o ╢
  36.                     {PPCLibraries}MathLib.xcoff
  37. librenames        =    -l MathLib.xcoff=MathLib ╢
  38.                     -l StdCLib.xcoff=StdCLib ╢
  39.                     -l InterfaceLib.xcoff=InterfaceLib
  40. PPCUtilsList    =    {Util}DialogUtilities.c.po {Util}PIUtilities.c.po 
  41. PPCUtils        =    {PPCUtilsList} {alllibs}
  42.  
  43. #========================================================================================
  44. # Options
  45. #========================================================================================
  46. mbgOpts            =    full
  47. symOpts            =    off
  48.  
  49. linkOpts        =    -w -sym {symOpts}
  50. cOpts            =    -d Macintosh=1 -mbg {mbgOpts} -sym {symOpts} -i {h} -i ::
  51. ppccOpts        =    -align mac68K -appleext on -sym {symOpts} -i {h}
  52. aOpts            =    -sym {symOpts}
  53.  
  54. #========================================================================================
  55. # Default rules
  56. #========================================================================================
  57. .c.o            ─    .c
  58.     Echo "# `Date -t` ----- Compiling {Default} (68K)" ╖╖ {ErrorOut}
  59.     C {cOpts} -r -b2 -bigseg -mc68020 ╢
  60.         {DepDir}{Default}.c -o {Targ} ╖╖ {ErrorOut}
  61.  
  62. .c.po            ─    .c
  63.     Echo "# `Date -t` ----- Compiling {Default} (PPC)" ╖╖ {ErrorOut}
  64.     PPCC {ppccOpts} {DepDir}{Default}.c -o {Targ} ╖╖ {ErrorOut}
  65.  
  66. .a.o            ─    .a
  67.     Echo "# `Date -t` ----- Assembling {Default} (68K)" ╖╖ {ErrorOut}
  68.     Asm {aOpts} -i {h} -i {a} -case obj ╢
  69.         {DepDir}{Default}.a -o {Targ} ╖╖ {ErrorOut}
  70.     
  71. #========================================================================================
  72. # Overall build
  73. #========================================================================================
  74.  
  75. BuildMe            ─    "{Out}DummyExport"
  76.  
  77. #========================================================================================
  78. # Dump file
  79. #========================================================================================
  80.  
  81. Headers    =    {h}PIGeneral.h {h}PITypes.h {h}PIAbout.h ╢
  82.             {h}PIExport.h {h}DialogUtilities.h {h}PIUtilities.h ╢
  83.             ::ExportUtilities.h
  84.  
  85. {Util}DialogUtilities.c.o ─ {h}DialogUtilities.h {Util}DialogUtilities.c
  86. {Util}DialogUtilities.c.po ─ {h}DialogUtilities.h {Util}DialogUtilities.c
  87.  
  88. {Util}PIUtilities.c.o ─ {h}PIUtilities.h {Util}DialogUtilities.c
  89. {Util}PIUtilities.c.po ─ {h}PIUtilities.h {Util}DialogUtilities.c
  90.  
  91. "DummyExport.c.po"        ─    ::DummyExport.c {Headers}
  92.  
  93. "{Out}DummyExport"        ──    ::DummyExport.c.o ExportUIMac.c.o {Utils}
  94.     Echo "# `Date -t` ----- Linking 'DummyExport' (68K)" ╖╖ {ErrorOut}
  95.     Link -sg 'DummyExport...' -rt 8BAM=16000 -t 8BAM -c 8BIM -m ENTRYPOINT -o {Targ} {LinkOpts} ╢
  96.         ::DummyExport.c.o  EXPUIMAC.c.o {Utils} {Libs} ╖╖ {ErrorOut}
  97.     Delete -i {Targ}.SYM ╖╖ {ErrorOut}
  98.     Echo "Delete ╢'ICNc╢';" | Rez -a -o {Targ} ╖╖ {ErrorOut}
  99.  
  100. "DummyExport.xcoff"    ─    "DummyExport.c.po" "ExportUIMac.c.po" {PPCUtilsList}
  101.     Echo "# `Date -t` ----- Linking 'DummyExport' (PPC)" ╖╖ {ErrorOut}
  102.     PPCLink -mf -main ENTRYPOINT ╢
  103.         "DummyExport.c.po" "EXPUIMAC.c.po" {PPCUtils} -o {Targ}
  104.  
  105. #"{Out}DummyExport"        ──    "DummyExport.xcoff"
  106. #    Echo "# `Date -t` ----- Making 'DummyExport' PEF (PPC)" ╖╖ {ErrorOut}
  107. #    MakePEF -b {librenames} "DummyExport.xcoff" -o {Targ}
  108.  
  109. "{Out}DummyExport"        ──    "::DummyExport.r"
  110.     Echo "# `Date -t` ----- Rezzing 'DummyExport'" ╖╖ {ErrorOut}
  111.     Rez -i {PIRIncludes} -d Macintosh=1 -d MSWindows=0 -a -rd {RFiles} "::DummyExport.r" -o {Targ} ╖╖ {ErrorOut}
  112.  
  113. DummyExport.c.o ─ ::DummyExport.c
  114.